﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Catalogo.ascx.vb" Inherits="Content_Administracion_Adm_controls_Catalogo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<div class="titulos"><asp:Label ID="Label21" runat="server" Text="Catálogos"></asp:Label></div>

<asp:ScriptManager ID="SM1" runat="server">
</asp:ScriptManager>
<asp:Label ID="lb_error" runat="server"></asp:Label>
<asp:UpdatePanel ID="upd_cat" runat="server">
    <ContentTemplate>


        <asp:TabContainer runat="server" ID="TabC1" ActiveTabIndex="0" Width="75%" 

            CssClass="Tab" AutoPostBack="True">

            <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Instituciones">
                <ContentTemplate>
                        <table style="width: 80%;">
                            <tr>
                                <td style="width:35%;">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label1" runat="server" Text="Nombre: "></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_inst" runat="server" ValidationGroup="g1" MaxLength="50" ></asp:TextBox>

                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" 
                                                     TargetControlID="txt_inst" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü"></asp:FilteredTextBoxExtender>
                                                 <asp:RequiredFieldValidator ID="reqName" runat="server"
                                    ControlToValidate="txt_inst" Display="None"
                                    ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1" />
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender34" runat="server"
                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                    HighlightCssClass="validatorCalloutHighlight"
                                    TargetControlID="reqName" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label25" runat="server" Text="Calle: "></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_calleInst" runat="server" ValidationGroup="g1" MaxLength="50"></asp:TextBox>
                                                 <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" 
                                                    TargetControlID="txt_calleInst" Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ0123456789áéíóúÁÉÍÓÚÜü" 
                             ></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_calleInst"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator2" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                            </td>
                                        </tr>
                                        <tr>
                                        <td>
                                            <asp:Label ID="Label58" runat="server" Text="Numero: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_numeroInst" runat="server" ToolTip="Formato: Sólo números" ValidationGroup="g1" MaxLength="9"></asp:TextBox> 
                                             <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server" 
                                                    FilterType="Numbers" TargetControlID="txt_numeroInst" Enabled="True" ValidChars=" "></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator75" runat="server" ControlToValidate="txt_numeroInst"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender78" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator75" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                         </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label59" runat="server" Text="Colonia: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_coloniaInst" runat="server" ValidationGroup="g1" MaxLength="50"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server" 
                                                    TargetControlID="txt_coloniaInst" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ0123456789áéíóúÁÉÍÓÚÜü"></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txt_coloniaInst"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator5" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                            </td></tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label26" runat="server" Text="C.P.: "></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_CP" runat="server" ToolTip="Formato: solo números" ValidationGroup="g1" MaxLength="50"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" 
                                                    FilterType="Numbers" TargetControlID="txt_CP" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_CP"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator3" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>

                                            </td>
                                        </tr>
                                        <tr><td>
                                            <asp:Label ID="Label60" runat="server" Text="País: "></asp:Label>
                                            </td><td>
                                                 <asp:TextBox ID="txt_paisInst" runat="server" ValidationGroup="g1" MaxLength="50"></asp:TextBox>
                                                
                                                
                                                 <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender13" runat="server" 
                                                    ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü"
                                                     TargetControlID="txt_paisInst" Enabled="True"></asp:FilteredTextBoxExtender>
                                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator71" runat="server" ControlToValidate="txt_paisInst"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender73" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator71" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                            </td></tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label27" runat="server" Text="Estado: "></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_edoInst" runat="server" ValidationGroup="g1" MaxLength="50"></asp:TextBox>
                                                <br />
                                               
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender14" runat="server" 
                                                    ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü" 
                                                    TargetControlID="txt_edoInst" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator73" runat="server" ControlToValidate="txt_edoInst"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender76" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator73" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label28" runat="server" Text="Ciudad:"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_munInst" runat="server" ValidationGroup="g1" MaxLength="50"></asp:TextBox>
                                                <br />
                                                
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender15" runat="server" 
                                                   ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü"
                                                    TargetControlID="txt_munInst" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator74" runat="server" ControlToValidate="txt_munInst"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender77" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator74" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label2" runat="server" Text="Telefono: "></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_tel" runat="server" ToolTip="Formato: Sólo números" ValidationGroup="g1" MaxLength="50"></asp:TextBox>  
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" ValidChars="0123456789"  
                                                    TargetControlID="txt_tel" Enabled="True"></asp:FilteredTextBoxExtender>                                             
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txt_tel"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator6" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label29" runat="server" Text="Tarifa: "></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txt_tarifa" runat="server"  ToolTip="Formato: Son decimales entre 0 y 1 ejemplo: 0.2 es 20%" ValidationGroup="g1" MaxLength="6"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_tarifa" ValidationGroup="g1"></asp:RegularExpressionValidator>
                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender26" runat="server"
                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                    HighlightCssClass="validatorCalloutHighlight"
                                    TargetControlID="RegularExpressionValidator2" WarningIconImageUrl="~/images/Warning.png" 
                                                    Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txt_tarifa"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g1"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender15" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator7" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" 
                                                    FilterType="Custom, Numbers" ValidChars="." TargetControlID="txt_tarifa" 
                                                    Enabled="True"></asp:FilteredTextBoxExtender>
                                            </td>
                                        </tr>
                                             <td colspan="2" align="left">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" colspan="2" style="width: 66%">
                                                <asp:Button ID="btn_regInst" CssClass="button2" runat="server" Text="Registrar" ValidationGroup="g1"></asp:Button>
                                                <asp:Button ID="btn_modInst" CssClass="button2" runat="server" Text="Modificar" Visible="False" ValidationGroup="g1"></asp:Button>
                                                <asp:Button ID="btn_canInst" CssClass="button2" runat="server" Text="Cancelar" CausesValidation="False"></asp:Button>
                                                <asp:Label ID="lbl_errorInst" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="celdaGrids">
                                    <table style="width: 80%;">
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtbusquedaInst" runat="server"></asp:TextBox><asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" runat="server" TargetControlID="txtbusquedaInst" WatermarkText="Buscar Institución"/>
                                                <asp:ImageButton ID="lopa" runat="server" CausesValidation="false" ImageUrl="~/images/Search44.png" Text="Busqueda" Visible="True" />
            
                                                <asp:GridView ID="gv_Instituciones" runat="server" AutoGenerateColumns="False" Font-Size="X-Small"
                                                    CellPadding="5" CssClass="Gridview" GridLines="None" PageSize="20" AllowPaging="True">
                                                    <AlternatingRowStyle CssClass="Gridview" Font-Size="X-Small" />
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="hl_editar" runat="server" CausesValidation="False" CommandArgument='<%# bind("inst_Id")%>'
                                                                    CommandName="editarInst" Text="Editar"/>
                                                            
                                                            
                                                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# Bind("inst_Id") %>'
                                                                    CommandName="eliminaInst" Text="Eliminar" />
                                                                    <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat = "server" TargetControlID="LinkButton1" ConfirmText="¿Estas seguro de eliminar el registro?">
                                                                        </asp:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="inst_nombre" HeaderText="Institución" />
                                                        <asp:BoundField DataField="inst_tarifa" HeaderText="Tarifa" />
                                                        <asp:BoundField DataField="pais_nombre" HeaderText="País" />
                                                        <asp:BoundField DataField="edo_nombre" HeaderText="Estado" />
                                                        <asp:BoundField DataField="mun_nombre" HeaderText="Municipio" />

                                                    </Columns>
                                                </asp:GridView>
                                                <asp:Label ID="Label64" runat="server" Text="Label" Font-Size="Medium"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>                             
                            </tr>
                        </table>
                    </center>
                </ContentTemplate>
                <%--aqui van los filtros--%>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Perfiles">                
                <ContentTemplate>
                        <table style="width: 80%;">
                            <tr>
                                <td width="35%">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label4" runat="server" Text="Nombre: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_nombrePer" ToolTip="Formato letras y numeros"  
                                                    runat="server" ValidationGroup="g2" MaxLength="50"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" 
                                                     TargetControlID="txt_nombrePer" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ0123456789áéíóúÁÉÍÓÚÜü"></asp:FilteredTextBoxExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txt_nombrePer"
                                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g2"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator9" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label5" runat="server" Text="% Capitales: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_Cap" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%"  
                                                    runat="server" ValidationGroup="g2" MaxLength="6"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender17" runat="server" FilterType="Custom, Numbers" 
                                                    ValidChars="." TargetControlID="txt_Cap" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP1" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_Cap" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender27" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP1" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txt_Cap"
                                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g2"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator10" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label6" runat="server" Text="% Tipo A: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_A" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                                    runat="server" ValidationGroup="g2" MaxLength="6"></asp:TextBox>
                                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender18" runat="server" FilterType="Custom, Numbers" 
                                                ValidChars="." TargetControlID="txt_A" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP2" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_A" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender28" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP2" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                                                    ControlToValidate="txt_A" Display="None" 
                                                    ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g2"  />
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" 
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout" Enabled="True" 
                                                    HighlightCssClass="validatorCalloutHighlight" 
                                                    TargetControlID="RequiredFieldValidator11" 
                                                    WarningIconImageUrl="~/images/Warning.png">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label22" runat="server" Text="% Tipo B: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_A0" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                                    runat="server" ValidationGroup="g2" MaxLength="6"></asp:TextBox>
                                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender19" runat="server" FilterType="Custom, Numbers" 
                                                ValidChars="." TargetControlID="txt_A0" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP3" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_A0" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender29" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP3" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txt_A0"
                                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g2"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator12" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label23" runat="server" Text="% Tipo C: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_A1" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                                    runat="server" ValidationGroup="g2" MaxLength="6"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender20" runat="server" FilterType="Custom, Numbers" 
                                                    ValidChars="." TargetControlID="txt_A1" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP4" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_A1" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender30" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP4" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txt_A1"
                                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g2"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator13" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                            </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label24" runat="server" Text="% Notas Estructuradas: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_A2" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                                    runat="server" ValidationGroup="g2" MaxLength="6"></asp:TextBox>
                                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender21" runat="server" FilterType="Custom, Numbers" 
                                                ValidChars="." TargetControlID="txt_A2" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP5" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_A2" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender31" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP5" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                  <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txt_A2"
                                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g2"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender14" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator14" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label7" runat="server" Text="% Deuda: "></asp:Label>
                                            </td>
                                            <td>
                                                
                                                <asp:TextBox ID="txt_Deuda" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                                    runat="server" ValidationGroup="g2" Height="22px" MaxLength="6"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender22" runat="server" FilterType="Custom, Numbers" 
                                                    ValidChars="." TargetControlID="txt_Deuda" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP6" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_Deuda" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender32" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP6" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                                                    ControlToValidate="txt_Deuda" Display="None" ErrorMessage="Campo Obligatorio!" 
                                                    ForeColor="Red" ValidationGroup="g2" ></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="RequiredFieldValidator15_ValidatorCalloutExtender" 
                                                    runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout" 
                                                    Enabled="True" HighlightCssClass="validatorCalloutHighlight" 
                                                    TargetControlID="RequiredFieldValidator15" 
                                                    WarningIconImageUrl="~/images/Warning.png">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label8" runat="server" Text="% Fondo de Inversión: "></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txt_Fondo_Inv" 
                                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                                    runat="server" MaxLength="6"></asp:TextBox>
                                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender23" runat="server" FilterType="Custom, Numbers" 
                                                    ValidChars="." TargetControlID="txt_Fondo_Inv" Enabled="True"></asp:FilteredTextBoxExtender>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorP7" runat="server" ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%"
                                                    Display="None" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" ForeColor="Red" 
                                                    ControlToValidate="txt_Fondo_Inv" ValidationGroup="g2"></asp:RegularExpressionValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender33" runat="server"
                                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                                                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidatorP7" WarningIconImageUrl="~/images/Warning.png" Enabled="True" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                                                    ControlToValidate="txt_Fondo_Inv" Display="None" ErrorMessage="Campo Obligatorio!" 
                                                    ForeColor="Red" ValidationGroup="g2"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" 
                                                    runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout" 
                                                    Enabled="True" HighlightCssClass="validatorCalloutHighlight" 
                                                    TargetControlID="RequiredFieldValidator16" 
                                                    WarningIconImageUrl="~/images/Warning.png">
                                                </asp:ValidatorCalloutExtender>                                                
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <asp:Button ID="btn_regPer" runat="server" CssClass="button2" Text="Registrar" ValidationGroup="g2"/>
                                                <asp:Button ID="btn_modifPer" runat="server" CssClass="button2" Text="Modificar" Visible="False" ValidationGroup="g2" />
                                                <asp:Button ID="btn_cancPer" runat="server" CssClass="button2" Text="Cancelar"/>
                                            </td>
                                        </tr>
                                     </table>
                                </td>
                                <td class="celdaGrids">
                                    <table style="width: 80%;">
                                        <tr>
                                            <td>
                                                <asp:GridView ID="gv_Perfil" runat="server" AutoGenerateColumns="False" Font-Size="X-Small"
                                                    CellPadding="5" CssClass="Gridview" GridLines="None" AllowPaging="True" PageSize="15"
                                                    AllowSorting="True">
                                                    <%--  <asp:GridView ID="gv_Movs" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                        PageSize="4" PagerStyle-CssClass="PagerColor" CssClass="Gridview" CellPadding="4" HeaderStyle-CssClass="HeaderFooterGridview"
                        FooterStyle-CssClass="HeaderFooterGridview"  GridLines="None"
                        AlternatingRowStyle-CssClass="GridviewAlt">    --%>
                                                    <AlternatingRowStyle CssClass="GridviewAlt" Font-Size="X-Small" />
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandArgument='<%# Bind("per_Id") %>'
                                                                    CommandName="editarPer" Text="Editar" />
                                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# Bind("per_Id") %>'
                                                                    CommandName="eliminaPer" Text="Eliminar" />
                                                                    <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat = "server" TargetControlID="LinkButton1" ConfirmText="¿Estas seguro de eliminar el registro?">
                                                                        </asp:ConfirmButtonExtender>                                                                  
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="per_nombre" HeaderText="NOMRE" />
                                                        <asp:BoundField DataField="per_capitales" HeaderText="CAPITAL" />
                                                        <asp:BoundField DataField="per_tipo_a" HeaderText="TIPO A" />
                                                        <asp:BoundField DataField="per_tipo_b" HeaderText="TIPO B" />
                                                        <asp:BoundField DataField="per_tipo_c" HeaderText="TIPO C" />
                                                        <asp:BoundField DataField="per_notas_estruc" HeaderText="NOTAS ESTRUCTURADAS" />                                                                                                                
                                                    </Columns>
                                                </asp:GridView>
                                                <asp:Label ID="Label13" runat="server" Text="Label" Font-Size="Medium"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Emisoras">
                <HeaderTemplate>
                    Emisoras
                </HeaderTemplate>
                <ContentTemplate>
                    <table style="width: 80%;">
                        <tr>
                            <td width="35%">
                                <table style="width: 100%;">
                                    <tr>
                                        <td colspan="2">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label10" runat="server" Text="Nombre: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_nomEmi" runat="server" ValidationGroup="g3" MaxLength="50"></asp:TextBox>
                                            
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" 
                                                     TargetControlID="txt_nomEmi" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ áéíóúÁÉÍÓÚÜü"></asp:FilteredTextBoxExtender>
                                        
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txt_nomEmi"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" 
                                                ValidationGroup="g3"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender17" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator18" WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label12" runat="server" Text="Serie: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_Serie" runat="server" ValidationGroup="g3" MaxLength="50"></asp:TextBox>
                                            
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server" 
                                                     TargetControlID="txt_Serie" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ áéíóúÁÉÍÓÚÜü1234567890"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txt_Serie"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" 
                                                ValidationGroup="g3"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender18" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator19" WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label11" runat="server" Text="Tipo: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddl_tipo" runat="server"></asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label3" runat="server" Text="Costo: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_Costo" runat="server" ValidationGroup="g3" MaxLength="50"></asp:TextBox>
                                            
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender16" runat="server" 
                                                     TargetControlID="txt_Costo" 
                                                    Enabled="True" ValidChars=" 1234567890."></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator45" runat="server" ControlToValidate="txt_Costo"
				                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" 
                                                ValidationGroup="g3"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender44" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator45" WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Label ID="lblWarning" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="width: 66%">
                                            <asp:Button ID="btn_regEmi" runat="server" Text="Registrar" CssClass = "button2" ValidationGroup="g3" />
                                            <asp:Button ID="btn_modEmi" runat="server" Text="Modificar" CssClass = "button2" ValidationGroup="g3" Visible="False" />
                                            <asp:Button ID="btn_canEmi" runat="server" Text="Cancelar" CssClass = "button2"
                                                CausesValidation="False" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="celdaGrids">
                                <table style="width: 60%;">
                                    <tr>
                                        <td>
                                         <asp:TextBox ID="txtBusquedaEmisora" runat="server"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" 
                                                TargetControlID="txtBusquedaEmisora" WatermarkText="Buscar Emisora" 
                                                Enabled="True"/>
                                         <asp:ImageButton ID="lupa" runat="server" CausesValidation="False" 
                                                ImageUrl="~/images/Search44.png" Text="Busqueda" />
                                            <asp:GridView ID="gv_Emisoras" runat="server" AutoGenerateColumns="False" Font-Size="X-Small"
                                                CellPadding="5" CssClass="Gridview" GridLines="None" 
                                                AllowPaging="True">
                                                <AlternatingRowStyle CssClass="GridviewAlt" Font-Size="X-Small" />
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lkb_editar" runat="server" CausesValidation="False" CommandArgument='<%# Bind("emi_Id") %>'
                                                                CommandName="editarEmi" Text="Editar" />
                                                            <asp:LinkButton ID="lkb_eliminar" runat="server" CausesValidation="False" CommandArgument='<%# Bind("emi_Id") %>'
                                                                CommandName="eliminarEmi" Text="Eliminar" />
                                                            <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="lkb_eliminar"
                                                                ConfirmText="¿Estas seguro de eliminar la Emisora?">
                                                            </asp:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="emi_nombre" HeaderText="Nombre" />
                                                    <asp:BoundField DataField="emi_serie" HeaderText="Serie" />
                                                    <asp:BoundField DataField="emi_costo" HeaderText="Costo" />
                                                   <%-- <asp:BoundField DataField="tipo_nombre" HeaderText="Tipo" />--%>
                                                </Columns>
                                            </asp:GridView>
                                            <asp:Label ID="Label14" runat="server" Text="Label" Font-Size="Medium"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel5" runat="server" HeaderText="TabPanel5">

                <HeaderTemplate>
                    Despachos
                </HeaderTemplate>
                <ContentTemplate>
                    <table style="width: 80%;">
                        <tr>
                            <td style="width:35%;">
                                <table>
                                    <tr>
                                        <td class="celdaCatalogos1">Nombre </td>
                                        <td>
                                            <asp:TextBox ID="txtNombreDesp" runat="server" Width="150px" ValidationGroup="g5" MaxLength="100"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender27" runat="server" 
                                                     TargetControlID="txtNombreDesp" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ áéíóúÁÉÍÓÚÜü"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txtNombreDesp" Display="None" ForeColor="Red" ValidationGroup="g5"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender20" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator21" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                            </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">Calle</td>
                                        <td>

                                            <asp:TextBox ID="txt_calle" runat="server" Width="150px" ValidationGroup="g5" MaxLength="50"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender29" runat="server" 
                                                     TargetControlID="txt_calle" 
                                                    Enabled="True" ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ áéíóúÁÉÍÓÚÜü 1234567890-"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ErrorMessage="Campo Obligatorio" ValidationGroup="g5" Display="None" ForeColor="Red" ClientIDMode="AutoID" ControlToValidate="txt_calle"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender21" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator22" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                        </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            <asp:Label ID="Label61" runat="server" Text="Numero: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_numeroDesp" runat="server" Width="150px" ValidationGroup="g5" MaxLength="50"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender28" runat="server" 
                                                ValidChars="abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ1234567890-" TargetControlID="txt_numeroDesp" Enabled="True"></asp:FilteredTextBoxExtender>
                                                  <asp:RequiredFieldValidator ID="RequiredFieldValidator76" runat="server" ControlToValidate="txt_numeroDesp"
                                                    Display="None" ErrorMessage="Campo Obligatorio!" ForeColor="Red" ValidationGroup="g5"/>
                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender79" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator76" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
                                        </td></tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            <asp:Label ID="Label62" runat="server" Text="Colonia: "></asp:Label>
                                        </td>
                                        <td>
                                             <asp:TextBox ID="txt_coloniaDesp" runat="server" Width="150px" ValidationGroup="g5" MaxLength="50"></asp:TextBox>
                                             <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender33" runat="server" 
                                                ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ áéíóúÁÉÍÓÚÜü 1234567890-" TargetControlID="txt_coloniaDesp" Enabled="True"></asp:FilteredTextBoxExtender>
                                             <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txt_coloniaDesp" Display="None" ForeColor="Red" ValidationGroup="g5"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator4" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                        </asp:ValidatorCalloutExtender>
                                         </td></tr>
                                    <tr>
                                        <td class="celdaCatalogos1">CP</td>
                                        <td>

                                            <asp:TextBox ID="txt_cp1" runat="server" Width="150px" MaxLength="5" ValidationGroup="g5"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender34" runat="server" 
                                                ValidChars="1234567890" TargetControlID="txt_cp1" Enabled="True"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ErrorMessage="Campo Obligatorio" ValidationGroup="g5" Display="None" ForeColor="Red" ControlToValidate="txt_cp1"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender22" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator23" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                                            </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            <asp:Label ID="Label63" runat="server" Text="Pais: "></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_paisDesp" runat="server" ValidationGroup="g5" Width="150px" MaxLength="50"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender30" runat="server" 
                                                    ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü"  TargetControlID="txt_paisDesp" Enabled="True"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator68" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txt_paisDesp" Display="None" ForeColor="Red" ValidationGroup="g5"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender67" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator68" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                        </asp:ValidatorCalloutExtender>
                                           </td></tr>
                                    <tr>
                                        <td class="celdaCatalogos1">Estado</td>
                                        <td>

                                            <asp:TextBox ID="txt_edoDesp" runat="server" ValidationGroup="g5" Width="150px" MaxLength="50"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender31" runat="server" 
                                                    ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü"  TargetControlID="txt_edoDesp" Enabled="True"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator69" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txt_edoDesp" Display="None" ForeColor="Red" ValidationGroup="g5"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender68" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator69" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                        </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            Municipio
                                        </td>
                                        <td>

                                            <asp:TextBox ID="txt_munDesp" runat="server" ValidationGroup="g5" Width="150px" MaxLength="50"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender32" runat="server" 
                                                    ValidChars=" abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZáéíóúÁÉÍÓÚÜü"  TargetControlID="txt_munDesp" Enabled="True"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator72" runat="server" ErrorMessage="Campo Obligatorio" ControlToValidate="txt_munDesp" Display="None" ForeColor="Red" ValidationGroup="g5"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender75" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator72" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                        </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            Telefono
                                        </td>
                                        <td>

                                            <asp:TextBox ID="txt_telefono1" runat="server" Width="150px" ValidationGroup="g5" MaxLength="20"></asp:TextBox>                        
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender24" runat="server" 
                                                     TargetControlID="txt_telefono1" 
                                                    Enabled="True" ValidChars=" 1234567890"></asp:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ErrorMessage="Campo Obligatorio" ValidationGroup="g5" Display="None" ForeColor="Red" ControlToValidate="txt_telefono1"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender23" runat="server" CloseImageUrl="~/images/close.gif"
                                                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                                    TargetControlID="RequiredFieldValidator24" 
                                                    WarningIconImageUrl="~/images/Warning.png" Enabled="True">
                        </asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            Telefono 2
                                        </td>
                                        <td class="style1">

                                            <asp:TextBox ID="txt_telefono2" runat="server" Width="150px" ValidationGroup="g5" MaxLength="20"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender25" runat="server" 
                                                     TargetControlID="txt_telefono2" 
                                                    Enabled="True" ValidChars=" 1234567890"></asp:FilteredTextBoxExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="celdaCatalogos1">
                                            Telefono 3
                                        </td>
                                        <td>

                                            <asp:TextBox ID="txt_telefono3" runat="server" Width="150px" ValidationGroup="g5" MaxLength="20"></asp:TextBox>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender26" runat="server" 
                                                     TargetControlID="txt_telefono3" 
                                                    Enabled="True" ValidChars=" 1234567890"></asp:FilteredTextBoxExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">

                                            <asp:Button ID="registrarDespachos" runat="server" Text="Registrar" CssClass = "button2" Width="69px" ValidationGroup="g5" />
                                            <asp:Button ID="modificar_despacho" runat="server" Text="Modificar" CssClass = "button2" Width="69px" Visible="False" ValidationGroup="g5" />
                                            <asp:Button ID="btnCanDesp" runat="server" Text="Cancelar" CssClass = "button2" Width="69px" />

                                            <br />
                                            <asp:Label ID="lb_error_d" runat="server"></asp:Label>

                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="celdaGrids">
                                <asp:GridView ID="gv_despachos" runat="server" AutoGenerateColumns="False" Font-Size="X-Small"
                                                    CellPadding="5" CssClass="Gridview" GridLines="None" AllowPaging="True" PageSize="15">
                                                    <AlternatingRowStyle CssClass="GridviewAlt" Font-Size="X-Small" />
                                    <Columns>
                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lkb_edit_despacho" runat="server" CausesValidation="False" CommandArgument='<%# Bind("desp_id")%>'
                                                                    CommandName="editarDesp" Text="Editar" />
                                                                <asp:LinkButton ID="lkb_eliminar" runat="server" CausesValidation="False" CommandArgument='<%# Bind("desp_id")%>'
                                                                    CommandName="eliminarDesp" Text="Eliminar" />
                                                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="lkb_eliminar"
                                                                ConfirmText="¿Estas seguro de eliminar el despacho?">
                                                            </asp:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                        <asp:BoundField DataField="desp_nombre" HeaderText="Nombre" />
                                        <asp:BoundField DataField="desp_calle" HeaderText="Calle" />
                                        <asp:BoundField DataField="desp_numero" HeaderText="Numero" />
                                        <asp:BoundField DataField="desp_colonia" HeaderText="Colonia" />
                                        <asp:BoundField DataField="desp_CP" HeaderText="CP" />
                                         <asp:BoundField DataField="pais_nombre" HeaderText="Pais" />
                                        <asp:BoundField DataField="edo_nombre" HeaderText="Estado" />
                                        <asp:BoundField DataField="mun_nombre" HeaderText="Municipio" />
                                       <%-- <asp:BoundField DataField="stat_nombre" HeaderText="Estatus" />--%>
                                        <asp:BoundField DataField="desp_tel1" HeaderText="Tel" />
                                        
                                    </Columns>
                                </asp:GridView>
                                <asp:Label ID="Label15" runat="server" Text="Label" Font-Size="Medium"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel4" runat="server" HeaderText="IVA">
                <ContentTemplate>                    
                    <table style="width: 100%;">
                        <tr>
                            <td>
                                <asp:Label ID="Label9" runat="server" Text="IVA: "></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtIVA" runat="server" MaxLength="6" 
                                    ToolTip="Formato 0 a 1 donde 1 es el 100% ejemplo 0.1 equivale a 10%" 
                                    ValidationGroup="g7"></asp:TextBox>
                                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" 
                                    Enabled="True" FilterType="Custom, Numbers" TargetControlID="txtIVA" 
                                    ValidChars=".">
                                </asp:FilteredTextBoxExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorIVA1" 
                                    runat="server" ControlToValidate="txtIVA" Display="None" 
                                    ErrorMessage="Formato no valido. Son valores entre 0 y 1. donde 1 es el 100%" 
                                    ForeColor="Red" ValidationExpression="^[0](\.[0-9]+)?$|^[0-1](\.[0]+)?$" 
                                    ValidationGroup="g7"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" 
                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout" Enabled="True" 
                                    HighlightCssClass="validatorCalloutHighlight" 
                                    TargetControlID="RegularExpressionValidatorIVA1" 
                                    WarningIconImageUrl="~/images/Warning.png">
                                </asp:ValidatorCalloutExtender>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="txtIVA" Display="None" ErrorMessage="Campo Obligatorio!" 
                                    ForeColor="Red" ValidationGroup="g7"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" 
                                    CloseImageUrl="~/images/close.gif" CssClass="validatorCallout" Enabled="True" 
                                    HighlightCssClass="validatorCalloutHighlight" 
                                    TargetControlID="RequiredFieldValidator1" 
                                    WarningIconImageUrl="~/images/Warning.png">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnIVA" runat="server" CssClass="button2" Text="Actualizar" ValidationGroup="g7"/>
                            </td>
                        </tr>
                    </table>                                        
                </ContentTemplate> 
            </asp:TabPanel>
        </asp:TabContainer>
        </center>
    </ContentTemplate>
</asp:UpdatePanel>
